﻿#pragma once

#include "../IModule.h"

#include <map>
#include <shared_mutex>

#include <fast_io/fast_io_device.h>

struct player_recorder_struct {
	int tick{};
	fast_io::u8obuf_file_mutex file{};
};

extern std::shared_mutex player_recorder_mutex;
extern std::map<uint64_t, player_recorder_struct> player_recorder;

extern fast_io::dir_file PlayerBehavior_Dir;

extern IModule PlayerBehaviorRecorderModule;